<template>
<div>
    <slot name="test" :user="{...user, str: undefined}" :data="data" :msg="msg">
        <h3>test</h3>
    </slot>
    <slot :user="user" :data="data" :msg="msg">
        <h3>default</h3>
    </slot>
</div>
</template>

<script>
export default {
    name: "testCom",
    data() {
        return {
            user: {
                firstName: "hello",
                lastName: "vue",
            },
            data: {a: 10, b: 20, c: 30, d: null},
            msg: undefined
        }
    },
}
</script>
